package org.chen.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.chen.common.model.order.AbnormalPaymentRecord;
import org.chen.mapper.AbnormalPaymentRecordMapper;
import org.chen.service.AbnormalPaymentRecordService;
import org.springframework.stereotype.Service;

@Service
public class AbnormalPaymentRecordServiceImpl extends ServiceImpl<AbnormalPaymentRecordMapper, AbnormalPaymentRecord> implements AbnormalPaymentRecordService {

    @Override
    public AbnormalPaymentRecord getByPayPalOrderId(String payPalOrderId) {
        return getOne(new QueryWrapper<>(new AbnormalPaymentRecord().setPayPalOrderId(payPalOrderId)));
    }
}
